<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>行编辑</title>
		<script type="text/javascript" src="../js/jquery-1.8.3.js" ></script>
		<script type="text/javascript" src="../js/easyui/jquery.easyui.min.js" ></script>
		<script type="text/javascript" src="../js/easyui/locale/easyui-lang-zh_CN.js" ></script>
		<link rel="stylesheet" href="../js/easyui/themes/default/easyui.css" />
		<link rel="stylesheet" href="../js/easyui/themes/icon.css" />
	</head>
	<script>
		$(function(){
			
		
			$("#dg").datagrid({
				url:'1.json',
				columns:[[
					{
						field:'id',
						title:'编号',
						width:200
					},{
						field:'name',
						title:'商品名称',
						width:200
					},{
						field:'price',
						title:'价格',
						width:200
					}
				]],
				toolbar:[
					{
						id:'add',
						title:'添加',
						iconCls:'icon-add',
						handler:function(){
							
						}
					},{
						id:'edit',
						title:'编辑',
						iconCls:'icon-edit',
						handler:function(){
							
						}
					}
				]
			});
		
		});
	</script>
	<body>
		<table id="dg"></table>
	</body>
</html>
